\hypertarget{acquisition_8h}{
\section{/home/noxon/coding/C/esiee-in301/src/acquisition.h File Reference}
\label{acquisition_8h}\index{/home/noxon/coding/C/esiee-in301/src/acquisition.h@{/home/noxon/coding/C/esiee-in301/src/acquisition.h}}
}
{\tt \#include $<$unistd.h$>$}\par
{\tt \#include $<$sys/types.h$>$}\par
{\tt \#include $<$netinet/in.h$>$}\par
{\tt \#include $<$arpa/inet.h$>$}\par
{\tt \#include $<$sys/socket.h$>$}\par
{\tt \#include $<$sys/wait.h$>$}\par
{\tt \#include $<$netdb.h$>$}\par
{\tt \#include \char`\"{}casual\_\-includes.h\char`\"{}}\par
{\tt \#include \char`\"{}../libcomm/message.h\char`\"{}}\par
{\tt \#include \char`\"{}../libcomm/communication.h\char`\"{}}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
void \hyperlink{acquisition_8h_33f09a30b8cc860645e8551638002901}{launch\_\-acquisition} (\hyperlink{structmodule__struct}{module} $\ast$mdl, const int port)
\end{CompactItemize}


\subsection{Function Documentation}
\hypertarget{acquisition_8h_33f09a30b8cc860645e8551638002901}{
\index{acquisition.h@{acquisition.h}!launch\_\-acquisition@{launch\_\-acquisition}}
\index{launch\_\-acquisition@{launch\_\-acquisition}!acquisition.h@{acquisition.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void launch\_\-acquisition ({\bf module} $\ast$ {\em mdl}, \/  const int {\em port})}}
\label{acquisition_8h_33f09a30b8cc860645e8551638002901}


Permet de démarrer un serveur acquisition \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em mdl}]module lié au serveur acquisition \item[{\em port}]port sur lequel le serveur se bind\end{description}
\end{Desc}
\par
{\bf Exemple d'utilisation:} \small\begin{alltt} module *ack1=init\_module("Acquisition 01", ack, 1);
 launch\_acquisition(ack1, 1201);\end{alltt}
\normalsize 
 

Definition at line 3 of file acquisition.c.

References msg\_\-struct::action, module\_\-struct::bourse\_\-id, server\_\-struct::isAlive, server\_\-struct::local\_\-addr, log\_\-msg\_\-srv(), log\_\-smth(), log\_\-srv(), MAXRECVDATA, server\_\-struct::my\_\-port, module\_\-struct::name, server\_\-struct::name, server\_\-struct::numbytes, PORT\_\-INTERBOURSIER, server\_\-struct::recvdata, server\_\-struct::remote\_\-addr, server\_\-struct::sin\_\-size, server\_\-struct::sockfd, module\_\-struct::srv, and str\_\-to\_\-msg().

Referenced by main().